#!/bin/sh
#author:zlg


expect <<EOF
set timeout 60 
spawn su root -c "$@"
expect { 
        "Password"
        { 
              send "gaoyuadmin2017\n"; 
        } 
}
expect eof 
EOF
